<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : childView.jsp
    Description : 설명을 기술합니다.
    author jkKim
    since 2012. 5. 10.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 5. 10.     jkKim     최초 생성
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="validator" uri="http://www.springmodules.org/tags/commons-validator" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="ajax" uri="http://ajaxtags.sourceforge.net/tags/ajaxtags" %>
<%@ taglib prefix="able" uri="http://www.able_tag_support.com/tag" %>
<%@ taglib prefix="fnc" uri="http://www.able_function_support.com/function" %>
<c:if test="${fn:length(resultList) == 0}">   
     <div class="section">
        <p align="center">이벤트가 없습니다.</p>
     </div>
</c:if>
<c:if test="${fn:length(resultList) > 0}">
<c:forEach var="result" items="${resultList}" varStatus="status">
    <div class="section">
        <a href="/kr/evnt/selectEvntMnDetail.do?evntMnSn=${result.evntMnSn}"><img src="/kr${result.thumnImgPath}" alt="${result.evntTitl}" class="thumb" /></a>
        <ul class="information">
            <li>
                <strong class="title"><img src="/kr/images/event/txt_event01_02.gif" alt="제목" /></strong>
                <p class="subject"><a href="/kr/evnt/selectEvntMnDetail.do?evntMnSn=${result.evntMnSn}">${result.evntTitl}</a></p></p>
            </li>
            <li>
                <strong class="title"><img src="/kr/images/event/txt_event01_03.gif" alt="내용" /></strong>
                <p>${fnc:cutString(result.evntSbc,"...",40) }</p>
            </li>
            <li>
                <strong class="title"><img src="/kr/images/event/txt_event01_04.gif" alt="기간" /></strong>
                <p>${fn:substring(result.strtDt, 0, 4)}-${fn:substring(result.strtDt, 4, 6)}-${fn:substring(result.strtDt, 6, 8)} ~ ${fn:substring(result.fnhDt, 0, 4)}-${fn:substring(result.fnhDt, 4, 6)}-${fn:substring(result.fnhDt, 6, 8)}</p>
            </li>
            <li>
                <strong class="title"><img src="/kr/images/event/txt_event01_05.gif" alt="대상" /></strong>
                <p><c:if test="${result.evntSubj == 'E1'}">
                        <able:hmcCodeTag type="codeNm" gCd="EVNTUBJ" comCd="E1"/>
                    </c:if>
                    <c:if test="${result.evntSubj == 'E2'}">
                        <able:hmcCodeTag type="codeNm" gCd="EVNTUBJ" comCd="E2"/>
                    </c:if></p>
            </li>
        </ul>
    </div>
</c:forEach> 
</c:if>    
 
  
  
 
